package com.ruoyi.exam_approval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam_approval.mapper.TbExamApprovalMapper;
import com.ruoyi.exam_approval.domain.TbExamApproval;
import com.ruoyi.exam_approval.service.ITbExamApprovalService;

/**
 * 考试报名审核信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbExamApprovalServiceImpl implements ITbExamApprovalService 
{
    @Autowired
    private TbExamApprovalMapper tbExamApprovalMapper;

    /**
     * 查询考试报名审核信息
     * 
     * @param id 考试报名审核信息主键
     * @return 考试报名审核信息
     */
    @Override
    public TbExamApproval selectTbExamApprovalById(Long id)
    {
        return tbExamApprovalMapper.selectTbExamApprovalById(id);
    }

    /**
     * 查询考试报名审核信息列表
     * 
     * @param tbExamApproval 考试报名审核信息
     * @return 考试报名审核信息
     */
    @Override
    public List<TbExamApproval> selectTbExamApprovalList(TbExamApproval tbExamApproval)
    {
        return tbExamApprovalMapper.selectTbExamApprovalList(tbExamApproval);
    }

    /**
     * 新增考试报名审核信息
     * 
     * @param tbExamApproval 考试报名审核信息
     * @return 结果
     */
    @Override
    public int insertTbExamApproval(TbExamApproval tbExamApproval)
    {
        return tbExamApprovalMapper.insertTbExamApproval(tbExamApproval);
    }

    /**
     * 修改考试报名审核信息
     * 
     * @param tbExamApproval 考试报名审核信息
     * @return 结果
     */
    @Override
    public int updateTbExamApproval(TbExamApproval tbExamApproval)
    {
        return tbExamApprovalMapper.updateTbExamApproval(tbExamApproval);
    }

    /**
     * 批量删除考试报名审核信息
     * 
     * @param ids 需要删除的考试报名审核信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamApprovalByIds(Long[] ids)
    {
        return tbExamApprovalMapper.deleteTbExamApprovalByIds(ids);
    }

    /**
     * 删除考试报名审核信息信息
     * 
     * @param id 考试报名审核信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamApprovalById(Long id)
    {
        return tbExamApprovalMapper.deleteTbExamApprovalById(id);
    }
}
